package com.titaniume.java4;

/**
 *@program: JavaSenior
 *@description:
 *@author: renfei.huang
 *@create: 2021-11-03 09:35
 */
public class Boy {

    private  String name;

    private  Girl girl;

    public Boy() {
    }

    public Boy(Girl girl) {
        this.girl = girl;
    }

    public Boy(String name, Girl girl) {
        this.name = name;
        this.girl = girl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Girl getGirl() {
        return girl;
    }

    public void setGirl(Girl girl) {
        this.girl = girl;
    }

    @Override
    public String toString() {
        return "Boy{" +
                "name='" + name + '\'' +
                ", girl=" + girl +
                '}';
    }
}
